const { number, date } = require('joi')
const mongoose = require('mongoose')
let Schema = mongoose.Schema
let addressSchema = new Schema({
  id:{ type: Number, default: Date.now() },
  user_id:Number,
  province:String,
  city:String,
  area:String,
  create_time:{ type: Number, default: Date.now() },
})
//创建Model对象
let address = mongoose.model('address', addressSchema)
module.exports = address